namespace Digitalmes.Application.Mes;

/// <summary>
/// 产品返工模板
/// </summary>
public sealed class ReworkTemplateDto : Dto
{
    /// <summary>
    /// 模板名称
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? TemplateName { get; set; }

    /// <summary>
    /// 工艺类型编号
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? ProcTypeCode { get; set; }

    /// <summary>
    /// 工艺类型名称
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? ProcTypeName { get; set; }

    /// <summary>
    /// 是否为默认选择
    /// </summary>
    public bool IsDefault { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }

    /// <summary>
    /// 明细项集合
    /// </summary>
    public List<ReworkTemplateSubjectDto>? Subjects { get; set; }
}
